package cn.com.klun.tjy.dubbo.Impl;

import cn.com.klun.tjy.common.constant.VerdictEnum;
import cn.com.klun.tjy.dubbo.CalculateBreakM5FacadeService;
import cn.com.klun.tjy.dubbo.bean.TjyParametersVo;
import cn.com.klun.tjy.logic.CalculateBreakM5Logic;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Title: CalculateBreakM5FacadeServiceImpl
 * @Description: 突破五日均线
 */
@Service
public class CalculateBreakM5FacadeServiceImpl implements CalculateBreakM5FacadeService {

    private Logger logger = LoggerFactory.getLogger(CalculateBreakM5FacadeServiceImpl.class);

    @Autowired
    private CalculateBreakM5Logic calculateBreakM5Logic;
    @Override
    public TjyParametersVo service(TjyParametersVo vo) {
        try {
            String verdictEnum = calculateBreakM5Logic.exec(vo);
            // 处理返回的结果


        } catch (Exception e) {
            vo.setResDesc("突破五日均线服务调用异常");
        }
        return vo;

    }

}
